const express = require('express')
const md5 = require('md5')
const adminRouter = require('./routes/adminRouter')
const advRouter = require('./routes/advRouter')
const app = express()
app.use(express.json())
// 配置静态资源的路径
app.use(express.static(__dirname+'/public'))
app.use(adminRouter)
app.use(advRouter)

app.listen(7000,()=>{
    console.log('端口正在运行');
})